﻿app.controller('UserController', function ($scope, $routeParams) {
   

    // fetch content for X article
    $scope.index = $routeParams.id

    $scope.userArr = [];
    $scope.userArr.push("Sue");
    $scope.userArr.push("Rick");
    $scope.userArr.push("Mike");

    $scope.greeting = "howdy " + $scope.userArr[$scope.index] + " from User Controller"

})